Integrand size = 37, antiderivative size = 136 \[ \int \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {2 \sqrt {a} C \text {arcsinh}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{d}+\frac {2 a A \sin (c+d x)}{3 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {2 A \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{3 d} \]
[Out]
Time = 0.50 (sec) , antiderivative size = 136, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.135, Rules used = {4350, 4172, 4100, 3886, 221} \[ \int \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {2 A \sin (c+d x) \sqrt {\cos (c+d x)} \sqrt {a \sec (c+d x)+a}}{3 d}+\frac {2 a A \sin (c+d x)}{3 d \sqrt {\cos (c+d x)} \sqrt {a \sec (c+d x)+a}}+\frac {2 \sqrt {a} C \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \text {arcsinh}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{d} \]
[In]
[Out]
Rule 221
Rule 3886
Rule 4100
Rule 4172
Rule 4350
Rubi steps \begin{align*} \text {integral}& = \left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+a \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx \\ & = \frac {2 A \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{3 d}+\frac {\left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+a \sec (c+d x)} \left (\frac {a A}{2}+\frac {3}{2} a C \sec (c+d x)\right )}{\sqrt {\sec (c+d x)}} \, dx}{3 a} \\ & = \frac {2 a A \sin (c+d x)}{3 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {2 A \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{3 d}+\left (C \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)} \, dx \\ & = \frac {2 a A \sin (c+d x)}{3 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {2 A \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{3 d}-\frac {\left (2 C \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{a}}} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d} \\ & = \frac {2 \sqrt {a} C \text {arcsinh}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{d}+\frac {2 a A \sin (c+d x)}{3 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {2 A \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{3 d} \\ \end{align*}
Time = 1.86 (sec) , antiderivative size = 89, normalized size of antiderivative = 0.65 \[ \int \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {2 a \left (A (2+\cos (c+d x)) \sqrt {1-\sec (c+d x)}-3 C \arcsin \left (\sqrt {\sec (c+d x)}\right ) \sqrt {\sec (c+d x)}\right ) \sin (c+d x)}{3 d \sqrt {-1+\cos (c+d x)} \sqrt {a (1+\sec (c+d x))}} \]
[In]
[Out]
Time = 0.78 (sec) , antiderivative size = 193, normalized size of antiderivative = 1.42
method | result | size |
default | \(\frac {\left (2 A \cos \left (d x +c \right ) \sin \left (d x +c \right ) \sqrt {-\frac {1}{1+\cos \left (d x +c \right )}}+4 A \sin \left (d x +c \right ) \sqrt {-\frac {1}{1+\cos \left (d x +c \right )}}+3 C \arctan \left (\frac {\cos \left (d x +c \right )-\sin \left (d x +c \right )+1}{2 \left (1+\cos \left (d x +c \right )\right ) \sqrt {-\frac {1}{1+\cos \left (d x +c \right )}}}\right )-3 C \arctan \left (\frac {\cos \left (d x +c \right )+\sin \left (d x +c \right )+1}{2 \left (1+\cos \left (d x +c \right )\right ) \sqrt {-\frac {1}{1+\cos \left (d x +c \right )}}}\right )\right ) \sqrt {\cos \left (d x +c \right )}\, \sqrt {a \left (1+\sec \left (d x +c \right )\right )}}{3 d \left (1+\cos \left (d x +c \right )\right ) \sqrt {-\frac {1}{1+\cos \left (d x +c \right )}}}\) | \(193\) |
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 323, normalized size of antiderivative = 2.38 \[ \int \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx=\left [\frac {4 \, {\left (A \cos \left (d x + c\right ) + 2 \, A\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) + 3 \, {\left (C \cos \left (d x + c\right ) + C\right )} \sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{3} - 4 \, \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} {\left (\cos \left (d x + c\right ) - 2\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 7 \, a \cos \left (d x + c\right )^{2} + 8 \, a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2}}\right )}{6 \, {\left (d \cos \left (d x + c\right ) + d\right )}}, \frac {2 \, {\left (A \cos \left (d x + c\right ) + 2 \, A\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) + 3 \, {\left (C \cos \left (d x + c\right ) + C\right )} \sqrt {-a} \arctan \left (\frac {2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{a \cos \left (d x + c\right )^{2} - a \cos \left (d x + c\right ) - 2 \, a}\right )}{3 \, {\left (d \cos \left (d x + c\right ) + d\right )}}\right ] \]
[In]
[Out]
Timed out. \[ \int \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx=\text {Timed out} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 355 vs. \(2 (114) = 228\).
Time = 0.45 (sec) , antiderivative size = 355, normalized size of antiderivative = 2.61 \[ \int \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {\sqrt {2} {\left (3 \, \cos \left (\frac {2}{3} \, \arctan \left (\sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ), \cos \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right )\right )\right ) \sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ) - 3 \, \cos \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ) \sin \left (\frac {2}{3} \, \arctan \left (\sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ), \cos \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right )\right )\right ) + 2 \, \sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ) + 3 \, \sin \left (\frac {1}{3} \, \arctan \left (\sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ), \cos \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right )\right )\right )\right )} A \sqrt {a} + 3 \, C \sqrt {a} {\left (\log \left (2 \, \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2 \, \sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2\right ) - \log \left (2 \, \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 2 \, \sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2\right ) + \log \left (2 \, \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 2 \, \sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2 \, \sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2\right ) - \log \left (2 \, \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 2 \, \sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 2 \, \sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2\right )\right )}}{6 \, d} \]
[In]
[Out]
\[ \int \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx=\int { {\left (C \sec \left (d x + c\right )^{2} + A\right )} \sqrt {a \sec \left (d x + c\right ) + a} \cos \left (d x + c\right )^{\frac {3}{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx=\int {\cos \left (c+d\,x\right )}^{3/2}\,\left (A+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )\,\sqrt {a+\frac {a}{\cos \left (c+d\,x\right )}} \,d x \]
[In]
[Out]